﻿<!DOCTYPE html>
<html>
<head>
<title>长者住院资料</title>
<meta charset="utf-8">
<meta name="keywords" content="短照中心-湘潭市康复养老中心;">
<meta name="description" content="短照中心-湘潭市康复养老中心;">
<link rel="stylesheet" rev="stylesheet" href="css/framepage.css" type="text/css" media="screen,print" />
<link rel="stylesheet" type="text/css" href="js/waitBox/wait.css">
<script src="js/vue.js"></script>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/JSON-js-master/json2.js"></script>
<script src="js/waitBox/wait.js"></script>
<script src="js/purl.js"></script>
<style type="text/css">
@media print {
.no_print {
	display: none;
}
@page {
margin: 0 10mm 0;
}
.form_div ul {
	margin-top: 0;
}
}
</style>
</head>

<body style="background:rbg(216,216,216);">
<div class="form_div" id="vue_vm_list">
  <div style="margin:0;padding:0;" v-for="todo in todos">
    <h4>入院号：{{todo.beNumber}}</h4>
    <h3>长者住院资料</h3>
    <ul>
      <li style="color:#0000ff;"><span style="margin-right:20px;">资料录入：</span><span style="margin-right:10px;">{{todo.createName}}（{{todo.createTime}}）</span></li>
      <li><span>{{todo.beStatus==2?'已出院':todo.beStatus==1?'正在出院':'住院中'}}</span></li>
      <li><span>住院开始日期：{{todo.beDate}}</span></li>
      <li v-if="todo.beStatus==2"><span>住院结束日期：{{todo.outDate}}</span></li>
    </ul>
    <div style="clear:both;"></div>
    <ul v-if="todo.elderForm.isFinancialCs==1">
      <li><span class="tit" style="width:70px;">金融客户：</span></li>
      <li><span>{{todo.elderForm.bankName}}</span></li>
      <li><span>联系人：{{todo.elderForm.contactName}}</span></li>
      <li><span>{{todo.elderForm.contactPhoneNumer}}</span></li>
    </ul>
    <ul>
      <li><span class="tit" style="width:70px;"></span></li>
      <li><span>{{todo.elderForm.name}}</span></li>
      <li><span>性别：{{todo.elderForm.sex=='1'? '男': '女'}}</span></li>
      <li><span>生日：{{todo.elderForm.birthday}}</span></li>
      <li><span>民族：{{todo.elderForm.peoples}}</span></li>
      <li><span>身份证：{{todo.elderForm.cardId}}</span></li>
      <li><span>婚姻状况：{{todo.elderForm.maritalStatus}}</span></li>
      <li><span>户口所在地：{{todo.elderForm.registeredResidence}}</span></li>
    </ul>
    <ul>
      <li><span class="tit" style="width:70px;"></span></li>
      <li><span>地址：{{todo.elderForm.liveAddress}}</span></li>
    </ul>
    <ul>
      <li><span class="tit" style="width:70px;"></span></li>
      <li><span><a v-bind:href="getChepingUrl(todo.elderId, todo.elderForm.name, todo.elderForm.cardId)" target="_blank">测评资料</a>（有）</span></li>
      <li><span><a v-bind:href="'2-1-1basedata-jiaren.html?elderId='+todo.elderId" target="_blank">家属资料</a>（有）</span></li>
      <li><span><a v-bind:href="'2-1-1basedata-lianxi.html?elderId='+todo.elderId" target="_blank">紧急联系人资料</a>（有）</span></li>
    </ul>
    <ul>
      <li><span class="tit" style="width:70px;">入住科室：</span></li>
      <li><span>{{todo.subjectRoomName}}</span> </li>
    </ul>
    <ul>
      <li><span class="tit" style="width:70px;">入住时长：</span></li>
      <li><span>{{getNowDiff(todo.beDate)}}天</span> </li>
    </ul>
    <ul v-if="todo.userVipCardForm!=null">
      <li><span class="tit" style="width:70px;">补贴：</span></li>
      <li><span>{{getSubsidizationText(todo.userVipCardForm.subsidization, todo.userVipCardForm.subsidizationValue)}}</span> </li>
    </ul>
    <div style="clear:both;"></div>
    <div style="margin:0;padding:0;" id="houseTypeType_vipCard" v-if="todo.houseTypeType==1">
      <h3>VIP卡入院户型</h3>
      <ul>
        <!--VIP卡查询结果-->
        <li><span>持卡人：{{todo.userVipCardForm.name}}</span></li>
        <li><span>卡ID：{{todo.userVipCardForm.userVipCardId}}</span></li>
        <li><span>卡名：{{todo.userVipCardForm.vipCardName}}</span></li>
        <li><span>户型：{{todo.userVipCardForm.houseTypeName}}</span></li>
      </ul>
      <ul>
        <li><span>{{todo.userVipCardForm.priceYear}}元/年</span></li>
        <li><span>{{todo.userVipCardForm.pricePerDay}}元/天</span></li>
        <li><span>剩余可扣{{getRemainNumber(todo.userVipCardForm)}}天</span></li>
      </ul>
      <ul>
        <li><span>{{getSubsidizationText(todo.userVipCardForm.subsidization, todo.userVipCardForm.subsidizationValue)}}</span></li>
        <li><span>{{todo.consumptionWay}}</span></li>
        <li><span>保床折扣{{todo.discount}}%</span></li>
        <li><span style="color:#FF0000;">使用状态：{{todo.useStatus=='0'?'未使用':todo.useStatus=='1'?'使用中':'已使用完'}}</span></li>
        <li><span style="color:#FF0000;">缴费状态：{{todo.payCostStatus=='1'?'正在办理':(todo.payCostStatus=='2'?'已经缴费':'已提供发票')}}</span></li>
      </ul>
      <ul v-if="todo.userVipCardRecordForm==null">
        <li><span style="margin-right:20px;">使用记录：</span><span style="margin-right:10px;">暂无</span></li>
      </ul>
      <ul v-if="todo.userVipCardRecordForm!=null">
        <li><span style="margin-right:20px;">使用记录：</span><span style="margin-right:10px;">{{todo.userVipCardRecordForm.elderName}}</span><span style="margin-right:10px;">身份证号：{{todo.userVipCardRecordForm.elderCardId}}</span><span style="margin-right:10px;">使用{{todo.userVipCardRecordForm.useMonthNum}}个月</span><span style="margin-right:10px;">已扣{{todo.userVipCardRecordForm.payNum}}天</span><span style="margin-right:10px;">保留床位{{todo.userVipCardRecordForm.bedRetainDayNum}}天</span><span style="margin-right:10px;">{{todo.userVipCardRecordForm.returnMoney}}元已返至钱包</span></li>
      </ul>
      <ul>
        <li><span style="margin-right:20px;">出租记录：</span></li>
      </ul>
      <ul v-if="todo.userVipCardRentForms==null || todo.userVipCardRentForms.length==0">
        <li><span class="tit" style="width:30px;"></span></li>
        <li><span style="margin-right:10px;">暂无</span></li>
      </ul>
      <div style="margin:0;padding:0;" v-if="todo.userVipCardRentForms!=null && todo.userVipCardRentForms.length>0">
        <div style="margin:0;padding:0;" v-for="userVipCardRentForm in todo.userVipCardRentForms">
          <ul>
            <li><span class="tit" style="width:30px;"></span></li>
            <li><span style="margin-right:10px;">承租人姓名：{{userVipCardRentForm.renterName}}</span><span style="margin-right:10px;">身份证号：{{userVipCardRentForm.renterCardId}}</span><span style="margin-right:10px;">出租{{userVipCardRentForm.rentMonthNum}}个月</span><span style="margin-right:10px;">出租时间：{{userVipCardRentForm.updateTime}}</span></li>
          </ul>
        </div>
      </div>
      <ul>
        <li style="color:#ff0000;"> <span style="margin-right:20px;">扣费情况：</span> <span style="margin-right:10px;">总共可扣：{{getTotalMonths(todo.userVipCardForm)}}个月（{{getTotalNumber(todo.userVipCardForm)}}天）</span> <span style="margin-right:10px;">已扣：{{getAlreadyUsedNumber(todo.userVipCardForm)}}天</span> <span style="margin-right:10px;">剩余可扣：{{getRemainNumber(todo.userVipCardForm)}}天</span> </li>
      </ul>
      <ul>
        <li><span style="margin-right:20px;">与持卡人的关系：</span><span style="margin-right:10px;">{{todo.vipCardRelation}}</span></li>
      </ul>
    </div>
    
    <!--VIP卡-->
    <div style="clear:both;"></div>
    <div style="margin:0;padding:0;" id="houseTypeType_ordinary" v-if="todo.houseTypeType==2">
      <h3>普通入院户型</h3>
      <ul>
        <!--普通人选择户型结果-->
        <li><span class="tit" style="width:70px;"></span></li>
        <li style="width:250px;"><span>{{todo.houseTypeName}}</span></li>
        <li><span>{{todo.bedCostForm.price}}元/月</span></li>
        <li><span>{{(todo.bedCostForm.price/30).toFixed(2)}}元/天</span></li>
        <li><span>{{getSubsidizationText(todo.bedCostForm.subsidization, todo.bedCostForm.subsidizationValue)}}</span></li>
        <!--<li><span>{{getConsDeductionText(todo.bedCostForm.consumptionWay, todo.bedCostForm.consDeductionWay)}}</span></li>-->
        <li><span>保床折扣{{todo.discount}}%</span></li>
      </ul>
    </div>
    <!--普通人选择户型结果-->
    
    <div style="clear:both;"></div>
    <h3>床位详细信息</h3>
    <ul>
      <li><span class="tit" style="width:70px;"></span></li>
      <li><span>{{todo.buildingName}}</span></li>
      <li><span>{{todo.floorName}}</span></li>
      <li><span>{{todo.roomName}}{{todo.roomType}}</span></li>
      <li><span>{{todo.bedNumber}}床</span></li>
    </ul>
    <div style="clear:both;"></div>
    <h3>服务费用</h3>
    <ul>
      <li><span class="tit" style="width:70px;">选择护理：</span></li>
      <li><span>{{todo.nursingCostForm.nursingCostName+" 每月"+todo.nursingCostForm.price+"元"+" 半个月"+(todo.nursingCostForm.price/2).toFixed(2)+"元"}}</span></li>
    </ul>
    <ul>
      <li><span class="tit" style="width:70px;">基础服务：</span></li>
      <li><span>{{todo.baseServiceCostForm.serviceName+todo.baseServiceCostForm.price+"/每月 "+todo.baseServiceCostForm.deductionWay}}</span></li>
    </ul>
  </div>
  <div class="for_ie_div"><!--为兼容IE-->
    <ul>
      <li style="width:160px;">
        <input type="button" value="打印" class="button button1" onclick="window.print();" style="height:38px;"/>
      </li>
    </ul>
  </div>
</div>
<div style="clear:both;"></div>
<script src="js/common.js"></script> 
<script src="js/common_function.js"></script> 
<script src="js/common_date.js"></script>
<script src="js/busi/elder_be_hospital_query.js"></script>
</body>
</html>